﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Windows.Forms;


namespace LS.DesignSession
{
    public partial class showpic : Form
    {
        public showpic(Image p)
        {
            InitializeComponent();

            if (p != null)
            {

                //this.pictureBox1.Width = p.Width;
                //this.pictureBox1.Height = p.Height;
                this.Width = p.Width;
                this.Height = p.Height;
                this.pictureBox1.SizeMode = PictureBoxSizeMode.CenterImage;
                this.pictureBox1.Image = p;
            }
        }
    
        private void showpic_Load(object sender, EventArgs e)
        {

        }

        private void showpic_Deactivate(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}